// 插件注册

import PageTools from '@/components/PageTools/index.vue'

import UploadExcel from './UploadExcel/index.vue'
// 上传图片组件
import UploadPhoto from '@/components/UploadPhoto/index.vue'
// 全屏组件
import ScreenFull from './ScreenFull/index.vue'
// 切换中英文组件
import Lang from '@/lang/index.vue'

const components = [PageTools, UploadExcel, UploadPhoto, ScreenFull, Lang]

export default {
  install (Vue) {
    // Vue.component('PageTools', PageTools)
    components.forEach(cp => {
      Vue.component(cp.name, cp)
    })
  }
}
